﻿@model Susha.Models.Pages.NewsPage

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section scripts{
    @Scripts.Render("/Scripts/common/admin.js")
    @Scripts.Render("/Scripts/common/user.js")
    @Scripts.Render("/Scripts/jquery-1.8.2.min.js")
}

<h1>Окно управления новостями</h1>
@using (Html.BeginForm("Index", "News", FormMethod.Post, new { @class="new-news", enctype="multipart/form-data" }))
{
    <fieldset>
        <legend>Добавить новость</legend>
        @Html.TextBox("Title", Model.NewNews.Title)<br />
        @Html.TextArea("Text", Model.NewNews.Text)<br />
        @Html.TextBox("OriginalPhoto", Model.NewNews.OriginalPhoto, new { type="file" })<br />
        <button type="submit">Добавить новость</button>
    </fieldset>
}
